package com.pointstar.dp.software;

import com.pointstar.dp.software.factory.AppStoreFactory;
import com.pointstar.dp.software.factory.GooglePlayFactory;

import java.math.BigDecimal;

/**
 * @author 朱科睿
 */
public class Test {

    public static void main(String[] args) {

        final AppStoreFactory appStoreFactory = new AppStoreFactory();
        final GooglePlayFactory googlePlayFactory = new GooglePlayFactory();

        Application applicationInAppStore = Application.builder()
                .applicationName("直播吧")
                .price(BigDecimal.valueOf(1))
                .platform(appStoreFactory.createPlatform())
                .build();
        System.out.println(applicationInAppStore.getDescription());
        Application applicationInGooglePlay = Application.builder()
                .applicationName("直播吧")
                .price(BigDecimal.valueOf(1))
                .platform(googlePlayFactory.createPlatform())
                .build();
        System.out.println(applicationInGooglePlay.getDescription());
    }
}
